package cn.kattomy.shop.user.action;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

import cn.kattomy.shop.utils.CheckImgUtils;

/**
 * 验证码 Action 类
 * @author kattomy
 *
 */
public class CheckImgAction extends ActionSupport {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public String execute() throws Exception {

		//调用生成 验证码图片的工具类方法
		CheckImgUtils.buildCheckImg(ServletActionContext.getRequest(), ServletActionContext.getResponse());

		return NONE;
	}
}
